package com.wangmengtao.upms.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName: SystemController
 * @Description: TODO
 * @Author: WangMengtao
 * @Data: 2019/6/5 17:15
 * @Version: 1.0.0
 */
@Controller
@RequestMapping(value = "/")
public class SystemController {

    @GetMapping(value = {"/", "/index", "login"})
    public String login() {
        return "/login";
    }

    @GetMapping(value = "/main")
    public String main() {
        return "/main";
    }

    @GetMapping(value = "/users/view")
    public String userView() {
        return "/user/user";
    }

    @GetMapping(value = "/roles/view")
    public String roleView() {
        return "/role/role";
    }

    @GetMapping(value = "/depts/view")
    public String organizationView() {
        return "/dept/dept";
    }

    @GetMapping(value = "/permissions/view")
    public String permissionView() {
        return "/permission/permission";
    }


}
